<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
    <h2>主页面</h2>
    <hr />
    <a href="information.php">进入个人资料页面</a>
    <br />
    <br />
    <a href="porfile.php">进入头像页面</a>
    <hr />
    <img src="" id="imgid">
    <br />
</body>
</html>

<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/2
 * Time: 10:28
 */
print_r('上传的文件名： '.$_FILES['pic']['name']);

echo '<br />';
$username = $_GET['username'];
echo '姓名：'.$username.'<br />' ;
$merit = $_GET['merit'];
echo '特长：'.$merit.'<br />' ;
$sex = $_GET['sex'];
echo '性别：'.$sex.'<br />' ;
$company = $_GET['company'];
echo '公司：'.$company.'<br />' ;
$duty = $_GET['duty'];
echo '职务：'.$duty.'<br />' ;
$wechat = $_GET['wechat'];
echo '微信：'.$wechat.'<br />' ;
$qq = $_GET['qq'];
echo 'QQ:'.$qq.'<br />';
$p = $_GET['provincename'];
$c = $_GET['cityname'];
$location = onlocation($p,$c);
echo '所在地:'.$location.'<br />';
$introduce = $_GET['introduce'];
echo '自我介绍：'.$introduce;


function onlocation($p,$c){
    $provinces = ['北京','上海','福建'];
    $citys = [
        ['海淀','朝阳'],
        ['陆家嘴','浦东'],
        ['龙岩','宁德','三明','泉州','厦门','南平','福州','漳州','莆田']
    ];
    $aa = $provinces[$p].':'.$citys[$p][$c];
    return $aa;
}